import workspaceSvc from '../services/workspaceSvc';

export default {

  /**
   * 创建冲突文件提示，用创建新文件的形式强烈提示用户合并冲突
   * @param file src/data/empties/emptyFile.js
   * @returns {Promise<void>}
   */
  async tips(file) {
    const nameFile = `冲突-${file.name}-${Date.now()}`;
    // const newFile =
    await workspaceSvc.createFile({
      name: nameFile,
      parentId: file.parentId,
      text: nameFile,
    }, true);
  },
};
